net/netip.Prefix.ip (field)
23 uses
net/netip (current package)
netip.go#L1237: ip Addr
netip.go#L1267: ip: ip.withoutZone(),
netip.go#L1273: func (p Prefix) Addr() Addr { return p.ip }
netip.go#L1283: func (p Prefix) IsValid() bool { return !p.ip.isZero() && p.bits >= 0 && int(p.bits) <= p.ip.BitLen() }
netip.go#L1288: func (p Prefix) IsSingleIP() bool { return p.bits != 0 && int(p.bits) == p.ip.BitLen() }
netip.go#L1334: if m, err := p.ip.Prefix(int(p.bits)); err == nil {
netip.go#L1351: if f1, f2 := p.ip.BitLen(), ip.BitLen(); f1 == 0 || f2 == 0 || f1 != f2 {
netip.go#L1363: return uint32((ip.addr.lo^p.ip.addr.lo)>>((32-p.bits)&63)) == 0
netip.go#L1368: return ip.addr.xor(p.ip.addr).and(mask6(int(p.bits))).isZero()
netip.go#L1384: if p.ip.Is4() != o.ip.Is4() {
netip.go#L1401: if p, err = p.ip.Prefix(int(minBits)); err != nil {
netip.go#L1404: if o, err = o.ip.Prefix(int(minBits)); err != nil {
netip.go#L1407: return p.ip == o.ip
netip.go#L1422: if p.ip.z == z4 {
netip.go#L1423: b = p.ip.appendTo4(b)
netip.go#L1425: if p.ip.Is4In6() {
netip.go#L1427: b = p.ip.Unmap().appendTo4(b)
netip.go#L1429: b = p.ip.appendTo6(b)
netip.go#L1443: switch p.ip.z {
netip.go#L1497: return p.ip.String() + "/" + itoa.Itoa(int(p.bits))
The pages are generated with Golds v0.4.9. (GOOS=linux GOARCH=amd64)